home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / tifreadr.sit / Tiff Window DEMO / invalidate_controls.c < prev    next >
C/C++ Source or Header  |  1990-01-31  |  450b  |  20 lines

  1. #include    "my color.h"
  2.  
  3. invalidate_controls(whichWindow)
  4. WindowPtr    whichWindow;
  5. {
  6. Rect    grow_rect;
  7. ControlHandle    control;
  8.  
  9.     grow_rect = whichWindow->portRect;
  10.     grow_rect.top = whichWindow->portRect.bottom - BAR_WIDTH;
  11.     grow_rect.left = whichWindow->portRect.right - BAR_WIDTH;
  12.     InvalRect(&grow_rect);
  13.  
  14.     control = ((CWindowPeek)whichWindow)->controlList;
  15.     while(control)
  16.     {
  17.         InvalRect(&(*control)->contrlRect);
  18.         control = (*control)->nextControl;
  19.     }
  20. }